import { createApp } from "vue";
import App from "./App.vue";
// pinia
import pinia from "@/store/index";
// element-plus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
//@ts-ignore 忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import router from "@/router/index";
// svg插件需要配置代码
import "virtual:svg-icons-register";
// 引入组定义插件对象：注册整个项目全局组件
import gloablComponent from "@/components";

const app = createApp(App);

app.use(pinia);
app.use(ElementPlus);
// element-plus 国际化
app.use(ElementPlus, {
  locale: zhCn,
});
app.use(router);
app.use(gloablComponent);
app.mount("#app");
